package edu.sctu.java.consumer.case2;

import lombok.Data;

@Data
public class ConfigA {
    private String name;

    public static class Builder implements IBuilder<ConfigA> {

        private ConfigA config;

        public Builder() {
            this.config = new ConfigA();
        }

        public Builder name(String name) {
            this.config.name = name;
            return this;
        }

        @Override
        public ConfigA build() {
            return config;
        }
    }
}
